﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using Yuekao.Domain.API;
using Yuekao.Domain.dto;

namespace Yuekao.API.Read.Command
{
    public class GetDoctorCommand:IRequest<APIPagging<DoctorDto>>
    {
        /// <summary>
        /// 医生姓名
        /// </summary>
        [StringLength(30)]
        public string DoctorName { get; set; } = string.Empty;
        /// <summary>
        /// 所属职称
        /// </summary>
        public int WorkId { get; set; }

        /// <summary>
        /// 所属科室
        /// </summary>
        public int OfficeId { get; set; }
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;
    }
}
